package nc.arap.pub.utils;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;

import nc.jdbc.framework.processor.BaseProcessor;

public class MapProcessor extends BaseProcessor{

		@Override
		public Object processResultSet(ResultSet rs) throws SQLException {
			Map<String, String> map = new HashMap<String, String>();
			while (rs.next()) {
				map.put(rs.getString(1), rs.getString(2));
			}
			return map;
		}
		
	}